package cn.xydpeng.springframework.util;

import java.util.Objects;

/**
 * @author xydpeng
 * @version v1.0
 * @date: 2022/10/12
 * @description:
 */
public abstract class Assert {


    public static void isTrue(boolean expression, String message) {
        if (!expression) {
            throw new IllegalArgumentException(message);
        }
    }

    public static void notNull(Object object,String message) {
        if (object ==null) {
            throw new IllegalArgumentException(message);
        }
    }
}
